<template>
	<view class="">
		<view class="topbox" v-for="(item,index) in arr" :key="index">
			<image :src="item.img" mode=""></image>
			<view class="leftbox">
				<view class="name">
					{{item.name}}
				</view>
				<view class="jgbox">
					<view class="jg">
						<text>￥</text>
						<text class="num">{{item.money}}</text>
					</view>
					<view class="gm">
						购买了
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props: {
			arr: {
				type: Array,
				default: []
			}
		}
	}
</script>

<style scoped lang="scss">
	.topbox {
		display: flex;
		background-color: #FFFFFF;
		padding: 30rpx;
		box-sizing: border-box;

		image {
			width: 150rpx;
			height: 150rpx;
		}

		.leftbox {
			margin-left: 30rpx;

			.name {
				font-family: SourceHanSansCN-Normal;
				font-size: 28rpx;
				line-height: 36rpx;
				color: #000000;
				width: 460rpx;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
			}

			.jgbox {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 40rpx;

				.jg {
					font-family: PingFang-SC-Heavy;
					font-size: 22rpx;
					color: #e13c35;

					.num {
						font-family: PingFang-SC-Heavy;
						font-size: 36rpx;
						color: #e13c35;
					}
				}
			}

			.gm {
				font-family: PingFang-SC-Medium;
				font-size: 20rpx;
				color: #838383;
				margin-right: 20rpx;
			}
		}
	}
</style>
